<template>
  <el-upload
    action="#"
    list-type="picture-card"
    :auto-upload="false"
    :limit="1"
    :on-change="changeicon"
    :file-list="fileList"
    :on-remove="removeicon">
    <i class="el-icon-plus"></i>
  </el-upload>
</template>

<script>
export default {
  name: 'UploadOne',
  props: {
    fileList: {
      type: Array
    }
  },
  methods: {
    changeicon (file) {
      this.$emit('input', file.raw)
    },
    removeicon () {
      this.$emit('input', null)
    }
  }
}
</script>
